//
//  HYBDPanFileListViewModel.h
//  XPlayer
//
//  Created by 张水 on 2023/9/15.
//

#import <BaseWithRAC/BaseViewModel.h>
#import "HYBDPanFileModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^GetListData)(void);

@interface HYBDPanFileListViewModel : BaseViewModel

@property (nonatomic, strong) NSArray  *cloudALLFileList;
@property (nonatomic, strong) NSArray  *fileList;
@property (nonatomic, strong) NSArray  *audioList;
@property (nonatomic, strong) NSArray  *videoList;
@property (nonatomic, strong) NSArray  *otherList;
@property (nonatomic, strong) NSArray  *picList;
@property (nonatomic, strong) RACSubject *CellClickSubject;

@property (nonatomic, strong) RACSubject *CollectionCellClickSubject;

@property (nonatomic, strong) RACSubject *videoPlaySubject;

- (void)loadPathDataWith:(NSString *)path listData:(GetListData)listData;

- (NSInteger)numberOfRowsInSection:(NSInteger)section withFileType:(BDPanFileType)FileType;

- (id)cellForRowAtIndexPath:(NSIndexPath *)indexPath withFileType:(BDPanFileType)FileType;

- (void)didSelectRowAtIndexPath:(NSIndexPath *)indexPath withFileType:(BDPanFileType)FileType;

- (NSInteger)numberOfSectionsInCollectionView:(NSInteger)section withFileType:(BDPanFileType)FileType;

- (id)cellForRowAtIndexPathInCollectionView:(NSIndexPath *)indexPath withFileType:(BDPanFileType)FileType;

- (void)didSelectItemAtIndexPath:(NSIndexPath *)indexPath withFileType:(BDPanFileType)FileType;

- (void)fetchVideoPlayUrlWithIndexPath:(NSIndexPath *)indexPath withFileType:(BDPanFileType)FileType;

@end

NS_ASSUME_NONNULL_END
